<?php
defined('BASEPATH') or exit('No direct script access allowed');


class AnalysisrController extends Admin_Controller {

    public function __construct() {
        try {
            parent::__construct();
            $this->load->service("SService/AnalysisrService");
        } catch (\TPException $e) {
            exit($e->getRetJson());
        }
    }


    /**
     * 方法名 behaviorList
     *
     * @Name 获取方法列和角色方法列
     * @Desc 搜花行为列表
     * @OpenFlag 是否开放,1开放0权限控制
     * @Author      zn
     * @Date 2021-11-15 09:30:37 星期一
     * @return      [type]                   [description]
     */
    public function behaviorList() {
        $res = $this->AnalysisrService->behaviorList($_POST);
        exit(retSucc($res));
    }



    /**
     * 方法名 behaviorExport
     *
     * @Name 获取方法列和角色方法列
     * @Desc 搜花行为导出
     * @OpenFlag 是否开放,1开放0权限控制
     * @Author      zn
     * @Date 2021-11-15 09:30:37 星期一
     * @return      [type]                   [description]
     */
    public function behaviorExport() {
        $res = $this->AnalysisrService->behaviorExport($_POST);
        exit(retSucc($res));
    }



     /**
     * 方法名 resultList
     *
     * @Name resultList
     * @Desc 搜花行为列表
     * @OpenFlag 是否开放,1开放0权限控制
     * @Author      zn
     * @Date 2021-11-15 09:30:37 星期一
     * @return      [type]                   [description]
     */
    public function resultList() {
        $res = $this->AnalysisrService->resultList($_POST);
        exit(retSucc($res));
    }


    public function patternList() {
        $res = $this->AnalysisrService->patternList($_POST['pids']);
        exit(retSucc($res));
    }

    
}
